package com.aaa.web.service.noticeservice;


import com.aaa.entity.Notice;
import com.aaa.web.commons.NoticeQuery;
import com.aaa.web.commons.Result;
import org.springframework.web.multipart.MultipartFile;

import java.util.Map;
/**
* @description: 后台公告Service层
* @author: 王林林
* @create: 2018/12/20 13:55
**/
public interface WebNoticeService {
    /**获取所有公告或按条件查询公告*/
    Map getAllNotice(NoticeQuery query);
    /**根据当前的noticeId删除广告**/
    Result delNoticeById(Integer noticeId);
    /**添加或修改广告信息*/
    Result addOrUpdateNotice(Notice notice);
    /**将图片上传到服务器*/
    Map uploadPhoto(MultipartFile file);
}
